package com.szholly.plug.form.excel.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 定义表信息
 */
public class TableEntity {
	private String name = "";// 表名称
	private String primaryKey = "";
	private String uniqueColumn = "";
	private List<String> columnName;
	private List<String> dictColumnName;
	private Map<String, String> mapColumnName = null; // 存放英文列名为key， 中文列名为value的map数据
	private boolean deleteRepeat = false;// 是否删除重复（默认为false，如果设为true则在插入时首先根据主键删除重复信息）
	private List<ColumnProperty> columnPropertys = null;// 属性集合（每个实体对应多个ColumnProperty）
	private List<String> excludedColumns = null;// 排除字段（也就是指明哪些字段不用导入）

	public TableEntity() {
		columnPropertys = new ArrayList<ColumnProperty>();
		columnName = new ArrayList<String>();
		dictColumnName = new ArrayList<String>();
		mapColumnName = new HashMap<String, String>();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPrimaryKey() {
		return primaryKey;
	}

	public void setPrimaryKey(String primaryKey) {
		this.primaryKey = primaryKey;
	}

	public String getUniqueColumn() {
		return uniqueColumn;
	}

	public void setUniqueColumn(String uniqueColumn) {
		this.uniqueColumn = uniqueColumn;
	}

	public List<String> getColumnName() {
		return columnName;
	}

	public void setColumnName(List<String> columnName) {
		this.columnName = columnName;
	}

	public List<String> getDictColumnName() {
		return dictColumnName;
	}

	public void setDictColumnName(List<String> dictColumnName) {
		this.dictColumnName = dictColumnName;
	}

	public Map<String, String> getMapColumnName() {
		return mapColumnName;
	}

	public void setMapColumnName(Map<String, String> mapColumnName) {
		this.mapColumnName = mapColumnName;
	}

	public boolean isDeleteRepeat() {
		return deleteRepeat;
	}

	public void setDeleteRepeat(boolean deleteRepeat) {
		this.deleteRepeat = deleteRepeat;
	}

	public List<ColumnProperty> getColumnPropertys() {
		return columnPropertys;
	}

	public void setColumnPropertys(List<ColumnProperty> columnPropertys) {
		this.columnPropertys = columnPropertys;
	}

	public List<String> getExcludedColumns() {
		return excludedColumns;
	}

	public void setExcludedColumns(List<String> excludedColumns) {
		this.excludedColumns = excludedColumns;
	}
}
